# $OpenBSD: Makefile,v 1.11 2016/11/13 20:26:55 dcoppa Exp $

COMMENT =	disk auto-mounter

DISTNAME =	hotplug-diskmount-1.0.2

CATEGORIES =	sysutils

MAINTAINER =	Alexey Vatchenko <av@bsdua.org>

HOMEPAGE =	http://www.bsdua.org/hotplug-diskmount.html

MASTER_SITES =	http://www.bsdua.org/files/

# Public domain
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB =	c

RUN_DEPENDS =	sysutils/ntfs-3g

pre-build:
	${SUBST_CMD} ${WRKSRC}/hotplug-diskmount.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hotplug-diskmount ${PREFIX}/libexec/
	${SUBST_CMD} -o ${SHAREOWN} -g ${SHAREGRP} \
		-c ${WRKSRC}/hotplug-diskmount.8 \
			${PREFIX}/man/man8/hotplug-diskmount.8

.include <bsd.port.mk>
